package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_tongtian_power", autoSave = true,uploadCk = true,desc = "激斗通天塔-体力/灵气")
public class LogClimbTowerPower extends ServerBaseLog{

    @FieldTypeAnnotation(isIndex = true,desc = "活动id")
    int activityId;

    @FieldTypeAnnotation(isIndex = true,desc = "玩家id")
    long userId;

    @FieldTypeAnnotation(desc = "类型：0：消耗；1：抽奖：2：自然恢复；3：道具使用；4：爬塔获得")
    int type;

    @FieldTypeAnnotation(desc = "前体力")
    int beforeVal;

    @FieldTypeAnnotation(desc = "变更")
    int val;

    @FieldTypeAnnotation(desc = "变更后体力")
    int afterVal;


    public LogClimbTowerPower(int activityId, long userId, int type, int beforeVal, int val, int afterVal) {
        this.activityId = activityId;
        this.userId = userId;
        this.type = type;
        this.beforeVal = beforeVal;
        this.val = val;
        this.afterVal = afterVal;

    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getBeforeVal() {
        return beforeVal;
    }

    public void setBeforeVal(int beforeVal) {
        this.beforeVal = beforeVal;
    }

    public int getVal() {
        return val;
    }

    public void setVal(int val) {
        this.val = val;
    }

    public int getAfterVal() {
        return afterVal;
    }

    public void setAfterVal(int afterVal) {
        this.afterVal = afterVal;
    }

}
